package com.ibeeking.found.common.enums.msg;

/**
 * @Author ibeeking
 * @Description: 消息基本信息
 */
public enum MsgTemplateCodeEnum {
    BUYER_ORDER_001("下单成功提醒", "BUYER-ORDER-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_002("订单支付成功通知", "BUYER-ORDER-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_003("订单发货通知", "BUYER-ORDER-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_004("订单被买家取消时，提醒", "BUYER-ORDER-004", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_005("订单超时未支付被系统自动取消后，，提醒", "BUYER-ORDER-005", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_006("订单被卖家取消后，，提醒", "BUYER-ORDER-006", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_007("订单超时未支付，即将被自动关闭，距订单自动关闭时间30分钟时发送", "BUYER-ORDER-007", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_008("订单商家发货后，提醒", "BUYER-ORDER-008", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_009("买家确认收货后，提醒", "BUYER-ORDER-009", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_010("订单即将被自动确认收货（提前1天）,提醒", "BUYER-ORDER-010", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_011("自提订单备货完成后触发提醒", "BUYER-ORDER-011", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_012("自提订单到期提醒(1、非当天提货的订单，在到期前1天提醒一次 2、当天提货的订单有效期不提醒)", "BUYER-ORDER-012", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_013("自提订单线上支付成功,提醒", "BUYER-ORDER-013", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_014("货到付款的自提订单提交成功,提醒", "BUYER-ORDER-014", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_ORDER_015("订单核销成功后，提醒", "BUYER-ORDER-015", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_ORDER_MSG),
    BUYER_SERVICE_001("买家申请售后后，立即提醒", "BUYER-SERVICE-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_002("买家售后退款成功后，立即提醒", "BUYER-SERVICE-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_003("卖家拒绝售后申请后，立即提醒", "BUYER-SERVICE-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_004("卖家同意退款退货申请时，立即提醒", "BUYER-SERVICE-004", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_005("卖家主动转为线下退款后，立即提醒", "BUYER-SERVICE-005", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_006("仅退款售后单状态变更后通知", "BUYER-SERVICE-006", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_007("退货退款售后单状态变更后通知（是否同意退货）", "BUYER-SERVICE-007", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_008("退货退款售后单状态变更后通知（是否同意退款）", "BUYER-SERVICE-008", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_009("买家换货确认收货后，立即提醒", "BUYER-SERVICE-009", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_010("卖家确认收货后重新发货，立即提醒", "BUYER-SERVICE-010", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_011("买家发起换货申请，卖家拒绝后，立即提醒", "BUYER-SERVICE-011", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_SERVICE_012("买家发起换货申请，卖家同意后，立即提醒", "BUYER-SERVICE-012", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_AFTER_SALES),
    BUYER_COUPON_001("优惠券领取成功时，立即提醒", "BUYER-COUPON-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_COUPON_MSG),
    BUYER_COUPON_002("订单中使用优惠券且支付成功后", "BUYER-COUPON-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_COUPON_MSG),
    BUYER_COUPON_003("优惠券过期前三天提醒（领取时不足3天的不提醒）", "BUYER-COUPON-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_COUPON_MSG),
    BUYER_MEMBER_001("会员等级变更后，立即提醒", "BUYER-MEMBER-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MEMBER_MSG),
    BUYER_MEMBER_002("会员余额变动时，立即提醒", "BUYER-MEMBER-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MEMBER_MSG),
    BUYER_MEMBER_003("会员积分发生变动时（除营销活动的赠送），立即提醒", "BUYER-MEMBER-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MEMBER_MSG),
    BUYER_MEMBER_004("客户成功激活会员卡，立即提醒", "BUYER-MEMBER-004", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MEMBER_MSG),
    BUYER_MEMBER_005("买家或卖家充值成功时，立即提醒", "BUYER-MEMBER-005", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MEMBER_MSG),
    BUYER_MEMBER_006("每天21:00，给开启签到提醒且当天没有签到的会员推送提醒消息", "BUYER-MEMBER-006", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MEMBER_MSG),
    BUYER_CAMPAIGN_001("会员选择商品发起砍价后，立即提醒", "BUYER-CAMPAIGN-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_002("会员发起砍价的商品到达最低价时，立即提醒", "BUYER-CAMPAIGN-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_003("会员在砍价活动开始前，设置提醒后，公众号在活动开始前5分钟发送", "BUYER-CAMPAIGN-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_004("会员开团成功后，立即提醒", "BUYER-CAMPAIGN-004", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_005("拼团成功通知", "BUYER-CAMPAIGN-005", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_006("拼团失败通知所有团员，立即提醒", "BUYER-CAMPAIGN-006", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_007("参团成功即向参团者发送，立即提醒", "BUYER-CAMPAIGN-007", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_008("会员在拼团活动开始前，设置提醒后，公众号在活动开始前5分钟发送", "BUYER-CAMPAIGN-008", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_009("拼团成功即向中奖者/未中奖者发送", "BUYER-CAMPAIGN-009", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_010("会员在限时折扣活动开始前，设置提醒后，公众号在活动开始前5分钟发送", "BUYER-CAMPAIGN-010", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_011("活动结束进行抽奖的抽奖团，拼团成功时通知所有团员", "BUYER-CAMPAIGN-011", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_012("会员在社区团购活动开始前，设置提醒后，公众号在活动开始前5分钟发送", "BUYER-CAMPAIGN-012", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_013("活动结束后且接龙生效后推送", "BUYER-CAMPAIGN-013", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_014("活动结束后且接龙失败后推送", "BUYER-CAMPAIGN-014", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_CAMPAIGN_015("拼团出结果后通知所有团员", "BUYER-CAMPAIGN-015", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_CAMPAIGN_MSG),
    BUYER_DISCUSS_001("订单确认收货后，立即提醒买家评论", "BUYER-DISCUSS-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_DISCUSS_MSG),
    BUYER_DISCUSS_002("买家评论被卖家回复后，立即提醒", "BUYER-DISCUSS-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_DISCUSS_MSG),
    BUYER_DISCUSS_003("买家评论被设为精选后，立即提醒", "BUYER-DISCUSS-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_DISCUSS_MSG),
    BUYER_MASSTEXT_001("活动签到成功通知，群发通知", "BUYER-MASSTEXT-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MASSTEXTING_MSG),
    BUYER_MASSTEXT_002("打卡成功通知，群发通知", "BUYER-MASSTEXT-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MASSTEXTING_MSG),
    BUYER_MASSTEXT_003("活动中奖名单，群发通知", "BUYER-MASSTEXT-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MASSTEXTING_MSG),
    BUYER_MASSTEXT_004("活动报名无效，群发通知", "BUYER-MASSTEXT-004", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MASSTEXTING_MSG),
    BUYER_MASSTEXT_005("活动报名成功，群发通知", "BUYER-MASSTEXT-005", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MASSTEXTING_MSG),
    BUYER_MASSTEXT_006("活动报名等待审核，群发通知", "BUYER-MASSTEXT-006", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_MASSTEXTING_MSG),
    BUYER_GIFT_001("赠券、积分、余额等后，立即提醒", "BUYER-GIFT-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_GIFT_MSG),
    BUYER_GIFT_002("沙龙专题更新时，立即提醒", "BUYER-GIFT-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_GIFT_MSG),
    BUYER_GIFT_003("产生新的推广订单时，触发该通知", "BUYER-GIFT-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_GIFT_MSG),
    BUYER_GIFT_004("支付有礼赠送奖励发放到账户中，立即提醒", "BUYER-GIFT-004", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_GIFT_MSG),
    BUYER_PARKING_001("当车辆入场时，立即提醒", "BUYER-PARKING-001", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_PARKING_MSG),
    BUYER_PARKING_002("当车辆出场时，立即提醒", "BUYER-PARKING-002", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_PARKING_MSG),
    BUYER_PARKING_003("当支付完成停车费时，立即提醒", "BUYER-PARKING-003", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_PARKING_MSG),
    BUYER_PARKING_004("当会员查询停车费时，立即提醒", "BUYER-PARKING-004", MsgReceiverTypeEnum.BUYER, MsgCategoryEnum.BUYER_PARKING_MSG),
    SELLER_ORDER_001("线上支付订单提交成功，等待支付提醒", "SELLER-ORDER-001", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_ORDER_MSG),
    SELLER_ORDER_002("订单被买家取消时，立即提醒", "SELLER-ORDER-002", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_ORDER_MSG),
    SELLER_ORDER_003("订单超时未支付被系统自动取消后，立即提醒", "SELLER-ORDER-003", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_ORDER_MSG),
    SELLER_ORDER_004("商品新评价提醒", "SELLER-ORDER-004", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_ORDER_MSG),
    SELLER_LOGISTICS_001("货到付款订单提交成功时，立即提醒", "SELLER-LOGISTICS-001", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_002("线上支付订单支付成功时，立即提醒", "SELLER-LOGISTICS-002", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_003("拼团成功之后发送提醒（抽奖团为中奖后）", "SELLER-LOGISTICS-003", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_004("自提订单线上支付成功，立即提醒", "SELLER-LOGISTICS-004", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_005("货到付款的自提订单提交成功，立即提醒", "SELLER-LOGISTICS-005", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_006("周期购每期订单生成之后发送提醒", "SELLER-LOGISTICS-006", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_007("周期购每期订单生成之后发送提醒", "SELLER-LOGISTICS-007", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_008("买家确认收货后，立即提醒", "SELLER-LOGISTICS-008", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_009("系统确认收货，立即提醒", "SELLER-LOGISTICS-009", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_LOGISTICS_010("商家收到买家退回的商品，立即提醒", "SELLER-LOGISTICS-010", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_LOGISTICS_MSG),
    SELLER_SERVICE_001("买家申请退款，立即提醒", "SELLER-SERVICE-001", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_002("买家申请退货退款，立即提醒", "SELLER-SERVICE-002", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_003("买家已退货待退款，立即提醒", "SELLER-SERVICE-003", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_004("买家已退货，待收货，立即提醒", "SELLER-SERVICE-004", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_005("买家申请退换货，立即提醒", "SELLER-SERVICE-005", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_006("买家取消售后，立即提醒", "SELLER-SERVICE-006", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_007("系统自动同意退款申请，立即提醒", "SELLER-SERVICE-007", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_008("商家同意退款退货申请时，立即提醒", "SELLER-SERVICE-008", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_009("系统自动退货退款完成，立即提醒", "SELLER-SERVICE-009", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_010("买家已退回的商品商家超时未处理，系统自动确认收货", "SELLER-SERVICE-010", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_011("系统自动同意退换货申请，立即提醒", "SELLER-SERVICE-011", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_012("第三方物流发单时，判断商户余额不足，立即提醒", "SELLER-SERVICE-012", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_SERVICE_013("物流单异常/被取消时，立即提醒", "SELLER-SERVICE-013", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_AFTERSALES_MSG),
    SELLER_MEMBER_001("客户成功激活会员卡，立即提醒", "SELLER-MEMBER-001", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_MEMBER_MSG),
    SELLER_FINANCE_001("合同到期，提前一个月提醒", "SELLER-FINANCE-001", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_FINANCE_MSG),
    SELLER_FINANCE_002("与商户之间的结算，提前1周提醒", "SELLER-FINANCE-002", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_FINANCE_MSG),
    SELLER_FINANCE_003("商户对账，提前1周提醒商户", "SELLER-FINANCE-003", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_FINANCE_MSG),
    SELLER_FINANCE_004("商户欠账提醒，提前一周提醒", "SELLER-FINANCE-004", MsgReceiverTypeEnum.SELLER, MsgCategoryEnum.SELLER_FINANCE_MSG),
    PLATFORM_NOTICE_001("平台对全体买方用户发送公告提醒", "PLATFORM-NOTICE-001", MsgReceiverTypeEnum.PLATFORM, MsgCategoryEnum.PLATFORM_NOTICE_MSG),
    PLATFORM_NOTICE_002("平台对全体买方用户发送公告提醒", "PLATFORM-NOTICE-002", MsgReceiverTypeEnum.PLATFORM, MsgCategoryEnum.PLATFORM_NOTICE_MSG),
    PLATFORM_SYSTEM_001("平台系统升级提醒", "PLATFORM-SYSTEM-001", MsgReceiverTypeEnum.PLATFORM, MsgCategoryEnum.PLATFORM_NOTICE_MSG),
    PLATFORM_SYSTEM_002("平台系统新功能上线提醒", "PLATFORM-SYSTEM-002", MsgReceiverTypeEnum.PLATFORM, MsgCategoryEnum.PLATFORM_NOTICE_MSG),
    PLATFORM_SERVICE_001("买方向平台咨询服务提醒", "PLATFORM-SERVICE-001", MsgReceiverTypeEnum.PLATFORM, MsgCategoryEnum.PLATFORM_NOTICE_MSG),
    PLATFORM_SERVICE_002("商户向平台咨询服务提醒", "PLATFORM-SERVICE-002", MsgReceiverTypeEnum.PLATFORM, MsgCategoryEnum.PLATFORM_SERVICE_MSG),

    ;

    private String name;
    private String code;
    private MsgReceiverTypeEnum receiverType;
    private MsgCategoryEnum category;

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }

    public MsgReceiverTypeEnum getReceiverType() {
        return receiverType;
    }

    public MsgCategoryEnum getMsgCategory() {
        return category;
    }

    MsgTemplateCodeEnum(String name, String code, MsgReceiverTypeEnum receiverType, MsgCategoryEnum category) {
        this.name = name;
        this.code = code;
        this.receiverType = receiverType;
        this.category = category;
    }

    public static MsgTemplateCodeEnum getEnumByCode(String code) {
        for (MsgTemplateCodeEnum enumObj : values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj;
            }
        }
        return null;
    }
}
